# -*- coding: utf-8 -*-
from django import forms
from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
from page.widgets import ScanInput,ScanSelect
from .models import BarCode, Label, LabelStickGood


class BarCodeForm(forms.ModelForm):
    class Meta:
        model = BarCode
        exclude = []
        widgets = {
            'code': ScanInput,
        }


class LabelStickGoodForm(forms.ModelForm):
    class Meta:
        model = LabelStickGood
        exclude = []
        widgets = {
            'fk_good': ScanSelect,
        }

